import sys
# sys.setrecursionlimit(1000000000)#设置递归深度
count = 0
def func():
    global count
    count+=1
    print(count)

    if count==3:return
    func()
    print(456)
func()
#递归最大深度1000层:为了节省内存空间，不要让用户无限使用内存空间

def func(count):
    count+=1
    print(count)
    if divmod(count,10)==(5,3):return
    func(count)
func(1)

def func(count):
    count+=1
    print(count)
    if count==5:return 'return'
    ret=func(count)
    print(count,'返回值:',ret)
    return ret
func(1)

def func(count):
    count+=1
    print(count)
    if count==5:return 'return'

    return (count,'返回值:',func(count))
res=func(1)
print('res:',res)